package com.alan.validate.constraints.Impl;

import com.alan.validate.constraints.Mobile;
import com.alan.validate.utils.MobileValid;
import com.alan.validate.utils.ParamValidate;

public class MobileValidate implements ParamValidate<Mobile,String> {

	
	public void initialize(Mobile constraintAnnotation){
	}
	
	public boolean isValid(String value) {
		if (value == null || value.trim().length() > 0) {
			return false;
		}
		return MobileValid.isMobile(value);
	}

}
